//package com.example.myapplication.flutter;
//
//import android.content.Context;
//import android.os.Bundle;
//import android.view.WindowManager;
//
//import androidx.annotation.NonNull;
//
//import io.flutter.embedding.android.FlutterActivity;
//import io.flutter.embedding.android.FlutterView;
//import io.flutter.embedding.engine.FlutterEngine;
//import io.flutter.plugins.GeneratedPluginRegistrant;
//import io.flutter.view.FlutterNativeView;
//
//public class FlutterMainActivity extends FlutterActivity {
//
//    private String routeStr = "";
//
//    @Override
//    public FlutterView createFlutterView(Context context) {
//        WindowManager.LayoutParams matchParent = new WindowManager.LayoutParams(-1, -1);
//        FlutterNativeView nativeView = this.createFlutterNativeView();
//        FlutterView flutterView = new FlutterView(FlutterMainActivity.this, (AttributeSet) null, nativeView);
//        flutterView.setInitialRoute(routeStr);
//        flutterView.setLayoutParams(matchParent);
//        this.setContentView(flutterView);
//        return flutterView;
//    }
//
//    @Override
//    public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
//        super.configureFlutterEngine(flutterEngine);
//        GeneratedPluginRegistrant.registerWith(flutterEngine);
//
//    }
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        routeStr = "demo?{\"id\":112233}";
//        super.onCreate(savedInstanceState);
//    }
//}